|
Radar Host Communication library
2020.08.13
|
#include <math.h>#include <stdint.h>#include <stdbool.h>#include <stdio.h>#include <Windows.h>#include "COMPort.h"#include "Protocol.h"#include "EndpointRadarBaseBoard.h"#include "EndpointRadarD2GL.h"Go to the source code of this file.
Data Structures | |
| struct | show_result_options_t |
| struct | show_raw_data_options_t |
| struct | RX_Info_t |
Functions | |
| fmcw_para_values_t * | log_fmcw_para_value (fmcw_para_values_t *pData, char *p_title) |
| void | mcubase_consumption_cnf_callback (consumption_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, consumption_cnf_t *p_consumption) |
| void | mcubase_consumption_def_cnf_callback (consumption_def_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, consumption_def_host_t *p_consumption) |
| void | mcubase_para_store_callback (para_store_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, para_store_cnf_t *p_data) |
| void | mcubase_para_factory_reset_callback (para_factory_reset_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, para_factory_reset_t *p_data) |
| void | mcubase_board_info_callback (board_info_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, board_info_cnf_t *p_data) |
| void | fmcw_para_value_callback (void *p_context, int32_t protocol_handle, uint8_t endpoint, fmcw_para_values_t *ps_para_values) |
| void | fmcw_result_cnf_callback (void *p_context, int32_t protocol_handle, uint8_t endpoint, fmcw_result_cnf_t *p_result) |
| void | fmcw_adv_result_cnf_callback (void *p_context, int32_t protocol_handle, uint8_t endpoint, fmcw_adv_result_cnf_t *p_result) |
| void | fmcw_get_shield_info_cnf_callback (fmcw_get_shield_info_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, fmcw_get_shield_info_cnf_t *p_result) |
| void | fmcw_get_raw_data_cnf_callback (get_raw_data_cnf_ctx_t *p_context, int32_t protocol_handle, uint8_t endpoint, get_raw_data_cnf_t *p_raw_data) |
| int32_t | fmcw_set_parameter_helper (uint32_t protocol_handle, uint8_t endpoint, fmcw_para_values_t *p_para, char *text) |
| void | fmcw_para_value_copy_callback (void *p_context, int32_t protocol_handle, uint8_t endpoint, fmcw_para_values_t *ps_para_values) |
| bool | read_parameter_helper (fmcw_para_values_t *p_para) |
| int | main () |
Variables | |
| volatile boolean | completed = false |
| uint32_t | max_count = 20 |
This file implements a short test of the communication library. The library is used to connect to a sensor board, retrieve some raw radar data and print this data to the console. The raw radar data is printed to standard output. Information messages are printed to standard error output.
If multiple boards are connected to the host, the this test connects to the board with the smallest COM port number.
Definition in file commlib24_D2GL_basics.c.
| void fmcw_adv_result_cnf_callback | ( | void * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| fmcw_adv_result_cnf_t * | p_result | ||
| ) |
Definition at line 420 of file commlib24_D2GL_basics.c.
| void fmcw_get_raw_data_cnf_callback | ( | get_raw_data_cnf_ctx_t * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| get_raw_data_cnf_t * | p_raw_data | ||
| ) |
Definition at line 572 of file commlib24_D2GL_basics.c.
| void fmcw_get_shield_info_cnf_callback | ( | fmcw_get_shield_info_cnf_ctx_t * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| fmcw_get_shield_info_cnf_t * | p_result | ||
| ) |
Definition at line 478 of file commlib24_D2GL_basics.c.
| void fmcw_para_value_callback | ( | void * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| fmcw_para_values_t * | ps_para_values | ||
| ) |
Definition at line 315 of file commlib24_D2GL_basics.c.
| void fmcw_para_value_copy_callback | ( | void * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| fmcw_para_values_t * | ps_para_values | ||
| ) |
Definition at line 621 of file commlib24_D2GL_basics.c.
| void fmcw_result_cnf_callback | ( | void * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| fmcw_result_cnf_t * | p_result | ||
| ) |
Definition at line 380 of file commlib24_D2GL_basics.c.
| int32_t fmcw_set_parameter_helper | ( | uint32_t | protocol_handle, |
| uint8_t | endpoint, | ||
| fmcw_para_values_t * | p_para, | ||
| char * | text | ||
| ) |
Definition at line 599 of file commlib24_D2GL_basics.c.
| fmcw_para_values_t* log_fmcw_para_value | ( | fmcw_para_values_t * | pData, |
| char * | p_title | ||
| ) |
Definition at line 241 of file commlib24_D2GL_basics.c.
| int main | ( | ) |
Definition at line 665 of file commlib24_D2GL_basics.c.
| void mcubase_board_info_callback | ( | board_info_cnf_ctx_t * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| board_info_cnf_t * | p_data | ||
| ) |
Definition at line 302 of file commlib24_D2GL_basics.c.
| void mcubase_consumption_cnf_callback | ( | consumption_cnf_ctx_t * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| consumption_cnf_t * | p_consumption | ||
| ) |
Definition at line 261 of file commlib24_D2GL_basics.c.
| void mcubase_consumption_def_cnf_callback | ( | consumption_def_cnf_ctx_t * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| consumption_def_host_t * | p_consumption | ||
| ) |
Definition at line 275 of file commlib24_D2GL_basics.c.
| void mcubase_para_factory_reset_callback | ( | para_factory_reset_cnf_ctx_t * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| para_factory_reset_t * | p_data | ||
| ) |
Definition at line 295 of file commlib24_D2GL_basics.c.
| void mcubase_para_store_callback | ( | para_store_cnf_ctx_t * | p_context, |
| int32_t | protocol_handle, | ||
| uint8_t | endpoint, | ||
| para_store_cnf_t * | p_data | ||
| ) |
Definition at line 287 of file commlib24_D2GL_basics.c.
| bool read_parameter_helper | ( | fmcw_para_values_t * | p_para | ) |
Definition at line 633 of file commlib24_D2GL_basics.c.
| volatile boolean completed = false |
Definition at line 63 of file commlib24_D2GL_basics.c.
| uint32_t max_count = 20 |
Definition at line 64 of file commlib24_D2GL_basics.c.